-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: memleak part 4 #825
BUG: memleak part 4 #825
Conversation
* dup() returned record name and destroy the name record hash table and all associated memory in functions darshan_log_get_name_records and darshan_log_get_filtered_name_records * free allocated array of record_id,record_name tuples passed back from above functions in CFFI backend * free individual record names passed back frome above functions in CFFI backend
Memory profile looks much flatter now for reproducer in #824. Although, you do see some slight increase over time, looks like basically a couple of MiB. Not sure what's going on as it seems to periodically reset, then rise again. Is it some sort of artifact of garbage collection happening in CFFI or something like that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, I just have a minor suggestion to add comments to help remember what's going on here in the future. I think there are two instances to put it on. Otherwise looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
dup()
returned record name and destroy the name record hash table and all associated memory in functionsdarshan_log_get_name_records()
anddarshan_log_get_filtered_name_records()
Fixes #824